'use strict';

let StatusCode;
(function(StatusCode) {
  // 系统
  StatusCode[(StatusCode.SUCCESS = 0)] = 'SUCCESS';
  StatusCode[(StatusCode.SYS_API_ERROR = 10001)] = 'SYS_API_ERROR'; // api错误
  StatusCode[(StatusCode.SYS_PARAMS_ERROR = 10002)] = 'SYS_PARAMS_ERROR'; // 参数错误
  StatusCode[(StatusCode.SYS_NOT_LOGING = 10003)] = 'SYS_NOT_LOGING'; // 未登录
  StatusCode[(StatusCode.SYS_ACCOUNT_ERROR = 10004)] = 'SYS_ACCOUNT_ERROR'; // 账号密码错误
  StatusCode[(StatusCode.SYS_INVALID_REQUEST = 10005)] = 'SYS_INVALID_REQUEST'; // 非法请求
  StatusCode[(StatusCode.SYS_UNKNOWN_ERROR = 10006)] = 'SYS_UNKNOWN_ERROR'; // 未知错误
  StatusCode[(StatusCode.SYS_OPERATION_FAILED = 10007)] =
    'SYS_OPERATION_FAILED'; // 操作失败
  StatusCode[(StatusCode.SYS_SERVER_ERROR = 10008)] = 'SYS_SERVER_ERROR'; // 服务错误
  StatusCode[(StatusCode.SYS_PAGE_NOT_FOUND = 10009)] = 'SYS_PAGE_NOT_FOUND'; // 页面不存在
  StatusCode[(StatusCode.SYS_SERVER_BUSY = 10010)] = 'SYS_SERVER_BUSY'; // 服务器繁忙
  StatusCode[(StatusCode.SYS_OVER_FREQ = 10011)] = 'SYS_OVER_FREQ'; // 操作频繁，请稍后重试
  StatusCode[(StatusCode.SYS_MAINTENANCE = 10012)] = 'SYS_MAINTENANCE'; // 系统维护
  StatusCode[(StatusCode.SYS_GET_SERVER_FAILED = 10013)] =
    'SYS_GET_SERVER_FAILED'; // 获取服务器失败
})(StatusCode || (StatusCode = {}));

module.exports = StatusCode;
